// 平台API

// 缓存数据
const setStorageSync = (key, data) => localStorage.setItem(key, data)

// 读取缓存数据
const getStorageSync = key => localStorage.getItem(key)

// 清除key的缓存
const removeStorageSync = key => localStorage.removeItem(key)

// 清除所有缓存
const clearStorageSync = _ => localStorage.clear()

// 默认输出方法
export default {
  setStorageSync,
  getStorageSync,
  removeStorageSync,
  clearStorageSync
}
